﻿using System;

namespace housingsafety.server.Helpers
{
    /// <summary>
    /// The PaddingPolicy option controls the behavior of UrlBase64 when encoding content that does not
    /// fall on a 4-character (output) boundary. Per RFC 4648(https://tools.ietf.org/html/rfc4648),
    /// base64 specifies that an "optional depending on the circumstances" trailing = sign is used to
    /// pad the output to be a multiple of 4 characters long. UrlBase64 supports both padded and
    /// unpadded output via an optional PaddingPolicy parameter to UrlBase64.Encode controlling this behavior.
    /// The default behavior at this time is to omit the trailing padding given that it a) can (and usually is)
    /// be inferred automatically when dropped from the encoded output, and b) utilizes a symbol that requires
    /// encoding when used in URLs.
    /// </summary>
    public enum PaddingPolicy
    {
        /// <summary>
        /// 丢弃
        /// </summary>
        Discard,
        /// <summary>
        /// 保留
        /// </summary>
        Preserve,
    }
}
